/*
package cn.xx.basic.controller;

import cn.xx.basic.util.AjaxResult;
import cn.xx.user.domain.User;
import cn.xx.basic.service.IVerfactionService2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/verifaction")
public class VerifactionCodeController2 {

    @Autowired
    private IVerfactionService2 verfactionService;

    @PostMapping("/sendMobileCode")
    public AjaxResult checkVerifactionCode(@RequestBody User user) {
        try {
            verfactionService.sendMobileCode(user.getPhone());
            return new AjaxResult().me();
        } catch (Exception e) {
            e.printStackTrace();
            return AjaxResult.me().setSuccess(false).setMsg(e.getMessage());
        }


    }


}
*/
